package com.guli.order.client;

import com.guli.utils.vo.OrderCourseWebVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author ZHAOZHENYU
 * @since 2022/10/4
 */

@Component
@FeignClient(name = "service-edu",fallback = EduClientHystrix.class)
public interface EduClient {

    @GetMapping("/edu/course/courseInfoProvider/{courseId}")
    public OrderCourseWebVo getCourseInfoDto(@PathVariable String courseId);

}
